from app.url.importfile import Depends, Header, router, Request


async def get_request(request: Request):
    data = request.url.query
    data_dict = {}
    if data:
        list_data = data.split('&')
        for the_data in list_data:
            some_data = the_data.split('=')
            if len(some_data) == 1:
                data_dict[some_data[0]] = ''
            else:
                data_dict[some_data[0]] = some_data[1]
        return data_dict
    return data_dict
